package ruiFight.collect.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import ruiFight.collect.dao.base.BaseDaoMapper;
import ruiFight.collect.model.Manager;

public interface ManagerMapper extends BaseDaoMapper<Manager, Long> {
	 /**
     * @describe: 根据条件获取用户
     * @params:
     * @Author: Kanyun
     * @Date: 2018/1/16 0016 14:04
     */
    Manager findManagerByCondition(@Param("manager") Manager manager);
    
    /**
     * 获取用户信息
     * @param paramMap
     * @return
     */
    public List<Map<String, Object>> getManagerList(Map<String, Object> paramMap);
	/**
	 * 获取用户信息条数
	 * @param dataMap
	 * @return
	 */
	public Integer getManagerCount(Map<String, Object> paramMap);
	
	/**
	 * 验证用户名和密码
	 * @param dataMap
	 * @return
	 */
	public Integer verifyPassword(Manager manager);
	
	/**
	 * 验证管理员是否存在
	 * @param userName
	 * @return
	 */
	public Integer verifyUserName(String userName);
}